package cn.iocoder.yudao.module.cmt.dal.dataobject.course;

import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;

/**
 * CourseLearnRecord DO
 *
 * @author 芋道源码
 */
@TableName("cmt_course_learn_record")
@KeySequence("cmt_course_learn_record_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CourseLearnRecordDO extends BaseDO {

    /**
     * ID
     */
    @TableId
    private Long id;
    /**
     * 社区ID
     */
    private Long communityId;
    /**
     * 社区名称
     */
    @TableField(exist = false)
    private String communityName;
    /**
     * 商户ID
     */
    private Long merchantId;
    /**
     * 商户名称
     */
    @TableField(exist = false)
    private String merchantName;
    /**
     * 课程ID
     */
    private Long courseId;
    /**
     * 课程标题
     */
    @TableField(exist = false)
    private String courseTitle;
    /**
     * 章节ID
     */
    private Long chapterId;
    /**
     * 章节标题
     */
    @TableField(exist = false)
    private String chapterTitle;
    /**
     * 会员ID
     */
    private Long userId;
    /**
     * 学习进度(秒)
     */
    private Integer progress;
    /**
     * 进度百分比
     */
    private Integer progressPercent;
    /**
     * 是否完成
     */
    private Integer isCompleted;
    /**
     * 完成时间
     */
    private LocalDateTime completeTime;
    /**
     * 最后学习时间
     */
    private LocalDateTime lastLearnTime;
    /**
     * 学习时长(秒)
     */
    private Integer learnDuration;

}
